package com.hnas.common.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.hnas.common.dao.LogInfoDAO;
import com.hnas.common.orm.SysLogInfo;
import com.hnas.common.service.dto.DTOLogInfo;
import com.hnas.common.service.dto.search.DTOLogInfoSearch;
import com.hnas.core.dto.DTOPagedList;

@Component("logInfoService")
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
public class LogInfoServiceImpl implements LogInfoService{

	@Autowired
	private LogInfoDAO logInfoDAO;
	
	@Override
	public SysLogInfo saveOrUpdate(DTOLogInfo dto) throws Exception {
		return this.logInfoDAO.saveOrUpdate(dto);
	}

	@Override
	public DTOPagedList<DTOLogInfo> search(DTOLogInfoSearch criteria) {
		return this.logInfoDAO.search(criteria);
	}

}
